home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 158
/
158.d81
/
b.nsa show
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
6KB
|
209 lines
10 poke53280,0:poke53281,0:print"[147]"
20 poke788,49
30 poke55,0:poke56,56:clr:a$=""
40 dv=peek(186):ifdv<8thendv=8
50 dim r$(11),c(11),e(11),an$(13,15)
60 gosub60000
70 def fnd(i)=20-(len(an$(x,i))/2)
80 sys57812"unpacker.89",dv,0:poke780,0:poke781,0:poke782,201:sys65493
90 sys57812"package.o",dv,0:poke780,0:poke781,80:poke782,195:sys65493
100 sys57812"print9000",dv,0:poke780,0:poke781,0:poke782,144:sys65493
110 sys57812"nsa title.shp",dv,0:poke780,0:poke781,0:poke782,64:sys65493
120 sys57812"nsa font",dv,0:poke780,0:poke781,0:poke782,56:sys65493
130 poke251,64:poke252,224:poke253,204:sys51456
140 poke252,224:poke253,204:sys51459
150 ip=50000:unpack=51456:hgr=51459
160 ps=50006:ba=50009
170 open2,dv,2,"nsa text,p,r"
172 get#2,a$:get#2,a$
174 input#2,np
176 fori=1tonp:sysip,2,40:r$(i)=a$:sysip,2,40:c(i)=val(a$):next
180 j=1:k=0:fori=0to1:sysip,2,40:i=st
190 ifa$="*"thenj=j+1:k=0:goto210
200 k=k+1:an$(j,k)=a$
210 next:close2
260 syshgr
270 forx=1tonp
280 gosub1440
290 sys57812r$(x),dv,0:poke780,0:poke781,0:poke782,64:sys65493
300 md=peek(64*256)
310 gosub1530:ifa$="q"ora$="[209]"thengosub1210
320 gosub1660
330 e(x)=peek(53281)
340 kk=0:poke198,0:ti$="000000"
350 ifz3=0then380
360 z4=z4+1:z4=z4and15
370 poke53281,z4
380 kk=kk+1:geta$:ifa$=""andti$<"000015"then350
390 ifa$="q"ora$="[209]"thengosub1210
400 ifa$="s"ora$="[211]"then 560
410 ifa$="p"ora$="[208]"then 1710
420 ifa$<>chr$(133)then450
430 z1=z1+1:z1=z1and15
440 poke53280,z1:goto340
450 ifa$<>chr$(134)then480
460 z2=z2+1:z2=z2and15
470 poke53281,z2:goto340
480 ifa$<>chr$(135)then510
490 z3=1-z3:ifz3=0thenpoke53281,e(x)
500 goto340
510 syshgr:print"[147]":poke198,0:next x
520 goto270
530 :
540 rem save koala pic
550 :
560 sys hgr
570 poke53280,0:poke53281,0
580 print"[147][154]":poke214,11:print
590 print" [211]ave this unpacked picture? (y[154]/n[154])":poke198,0
600 geta$:ifa$<>"y"anda$<>"n"then600
610 ifa$="y"then640
620 goto1090
640 print"[147][154]":poke214,9:print
650 print" [201]nsert save disk and enter a filename."
670 print" [206]ame : ---------------[145][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][193][146]pic ";
680 ln%=10:sp$=" "
690 gosub730:ifnm$=""then1090
700 nm$=left$(chr$(129)+"pic "+nm$+sp$,15)
710 goto860
720 rem --- input routine ---
730 nm$="":x%=0:c%=peek(646)
740 print"[152][164][157]";:poke646,c%
750 geta$:ifa$=""then750
760 a%=asc(a$)
770 ifa%=20andx%thenx%=x%-1:nm$=left$(nm$,len(nm$)-1):print" [157][157]";:goto740
780 ifa%=20then750
790 ifa%=13thenprint" ":return
800 ifx%=ln%then750
810 ifa$<" "ora$>"z"anda$<"[193]"ora$>"[218]"ora%=34then750
820 nm$=nm$+a$:print""a$;:x%=x%+1:goto740
860 open15,dv,15,"r0:"+nm$+"="+nm$:input#15,er,er$:close15
870 ifer<>62thengosub1120:goto1090
910 gosub1660:nm$=nm$+",p,w"
920 sysps,nm$:syshgr
960 open15,dv,15:input#15,er,er$,y$,z$:close15
970 iferthengosub1120:goto580
1010 poke53280,0:poke53281,0
1020 print"[147][154]":poke214,7:print
1030 print" [211]aving complete."
1040 print" [201]f necessary, put the disk in"
1050 print" the drive and press [211][208][193][195][197][154]."
1060 geta$:ifa$<>" "then1060
1070 open15,dv,15,"r0:package.o=package.o":input#15,er:close15
1080 ifer<>63 then 1020
1090 syshgr:goto510
1130 poke53280,.:poke53281,.:print"[147] [129] [196] [201] [211] [203] [197] [210] [210] [207] [210] !
1140 [151]214,10:[153]
1150 a$[178]"print#valrror #"[170][196](er)[170]"print#,"[170]er$
1160 x%[178]22[171][195](a$)[173]2:[153][163]x%);a$
1170 [151]214,21:[153]
1180 [153]"print# (NULL)ress (NULL)(NULL)atnlenvalprint# to continue."
1190 [161]a$:[139]a$[179][177]" "[167]1190
1200 [142]
1210 o[178][194](53270)[175]16
1220 [139]o[167][158]51459
1230 [151]53281,0:[151]53280,0
1240 [153]"loadcont atnre you sure you want to quit? (ycont/ncont)"
1250 [151]198,0:[146]198,1:[161]ag$
1260 [139]ag$[178]"y"[176]ag$[178]"(NULL)"[167]40000
1270 [139]o[167][158]51459
1280 [142]
1420 [153]"";
1430 :
1440 [151]53281,0:[151]53280,0:[151]53272,31
1450 [153]"loadlistortantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantan^";
1460 [129]i[178]1[164]14
1470 [153]"(NULL)"[166]38)"(NULL)";:[130]
1480 [153]"/tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantanexp"
1490 [129]i[178]217[164]242:[151]i,([194](i)[176]128):[130]
1500 [153]"print#"
1510 [129]i[178]1[164]13:[153][163][165]d(i))an$(x,i):[130]
1520 [142]
1530 kk[178]0
1540 [151]214,15:[153]:[153]"list (NULL)hile the slide is showing..."
1550 [153]" asc1 sys- lenhange border color"
1560 [153]" asc3 sys- lenhange background color"
1570 [153]" asc5 sys- (NULL)oggle (NULL)eyoteasclash (tm)
1580 print" [211] [158]- [211]ave picture as [203][207][193][204][193]
1590 [153]" (NULL) sys- (NULL)rint picture"
1600 [153]" (NULL) sys- (NULL)uit"
1610 [151]214,23:[153]
1620 [153]"list(NULL)ress (NULL)list to quit - atnny other to continueon"
1622 ti$[178]"000000"
1630 [161]a$:[139]a$[179][177]""[176]ti$[177]"000015"[167][142]
1640 [137]1630
1650 :
1660 [153]"load";:[139]fh[167][151]254,0:[158]ba:[137]1690
1670 [151]251,64:[151]252,224:[151]253,204
1680 [158]un
1690 [151]53280,c(x):[151]252,224:[151]253,204:[158]hgr:[142]
1700 [142]
1710 [158]hgr:[151]53280,0:[151]53281,0
1720 [153]"load for(NULL)left$val (NULL)right$chr$left$(NULL)(NULL) (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL) (NULL)(NULL)right$(NULL)(NULL) (NULL)(NULL)str$(NULL)(NULL)val
1730 print"[155] [205]ode [196]ensity [215]idth"
1740 print" 1.[158] 7-pin wide"
1750 print" (1525)"
1760 print" 2.[158] 8-pin [211]ingle wide"
1770 print" ([197]pson)"
1780 print" 3.[158] ' [195]rt normal"
1790 print" 4.[158] ' [196]ouble narrow"
1800 print" 5.[158] ' [196]ouble wide"
1810 print" 6.[158] ' [209]uad narrow"
1820 print" 7.[158] ' [209]uad normal"
1830 print" 8.[158] [195]ancel"
1840 print" [154][205]ake sure printer is ready."
1850 poke198,0
1860 geta1$:ifa1$<"1"ora1$>"8"then1860
1870 a1=val(a1$):ifa1=1thentb=80
1880 ifa1=2then ds=0:bt=1:tb=80
1890 ifa1=3then ds=4:bt=1:tb=120
1900 ifa1=4then ds=1:bt=1:tb=160
1910 ifa1=5then ds=1:bt=2:tb=80
1920 ifa1=6then ds=3:bt=2:tb=160
1930 ifa1=7then ds=3:bt=3:tb=120
1940 ifa1=8then sys hgr:goto510
1950 forj=2to24:poke781,j:sys59903:next
1960 poke214,1:print
1970 print" [212]ab [208]osition"
1980 print" 1.[158] [204]eft"
1990 print" 2.[158] [195]enter"
2000 print" 3.[158] [210]ight"
2010 ifa1<>4anda1<>6then2040
2020 print" 4.[158] [195]enter-left"
2030 print" 5.[158] [195]enter-right"
2040 poke198,0
2050 geta2$:ifa2$<"1"ora2$>"5"then2050
2060 a2=val(a2$):ifa2=1then tb=0:goto2120
2070 ifa2=2then2120
2080 ifa2=3thentb=tb*2:goto2120
2090 ifa1<>4anda1<>6then2040
2100 ifa1=4thentb=53:goto2120
2110 tb=266
2120 poke251,64:poke252,224:poke253,204:sys un
2130 sys hgr
2140 ifa1=1thensys36864,224,204,tb,md:goto2160
2150 sys36867,224,204,tb,ds,bt,bt*320,md
2160 poke186,dv
2170 goto510
10000 d=peek(186):n$="b.nsa show":open15,d,15,"s0:"+n$:close15:saven$,d:end
40000 fori=8to29:poke820+i,i:next:ifdv>8anddv<30thenpoke828,dv:poke820+dv,8
40010 a$="presenter":gosub40030:a$="hello connect":gosub40030
40020 print"[147]":poke53272,23:poke186,8:poke2048,0:poke44,8:poke43,1:end
40030 forj=8to29:i=peek(820+j):ifi=14thennext
40040 close2:open2,i,2:close2:ifstthen40060
40050 close15:open15,i,15,"r0:"+a$+"="+a$:input#15,er:close15:ifer=63then40070
40060 next:return
40070 a$="hello connect":q$=chr$(34):poke646,peek(53281):print"[147]":poke53272,23
40080 print"[147]p[207]2048,0:p[207]44,8:p[207]43,1:p[207]56,160:p[207]55,0:clr:l[207]"q$a$q$","i
40090 print"run:":poke631,13:poke632,13:poke198,2:end
60000 print"[147]":z$=" [152] ":poke214,10:print
60010 print" [155][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184]